﻿#ifndef SYSTEMSETTINGFORM_H
#define SYSTEMSETTINGFORM_H

#include <QWidget>
#include <QAbstractButton>
#include "globalinstance.h"

namespace Ui {
    class SystemSettingForm;
}

class ConfSettings;
class UserSettings;

class SystemSettingForm : public QWidget, public GlobalInstance<SystemSettingForm>
{
    Q_OBJECT
    friend class GlobalInstance<SystemSettingForm>;
public:
    static SystemSettingForm* showWindow();
private:
    explicit SystemSettingForm(QWidget *parent = Q_NULLPTR);
    ~SystemSettingForm();
private:
    void showHost(const ConfSettings *conf);
    Ui::SystemSettingForm *ui;
private slots:
    void slot_proxy_finished();
    void on_push_disable_device_clicked();
    void on_push_disable_autoLogin_clicked();
    void on_push_server_clicked();
    void on_push_reset_clicked();
signals:
    void proxyChanged();
};

#endif // SYSTEMSETTINGFORM_H
